
var FindByCategoryModel = Backbone.Model.extend({
	urlRoot: "/GFour/restful/FindItemByCategory",
    defaults: {
    	items: [],
    }
});

var FindByKeywordsModel = Backbone.Model.extend({
	urlRoot: "/GFour/restful/FindItemByKeywords",
    defaults: {
    	items: [],
    }
});

var createBingMap = function() {
    // Initialize the map using my Bing maps key
    var mapOption = ({
        credentials:"Al-dOWipRA2Uoptx-e5xjpXMnKb77bii6_LoQjLmwvGyp6R69WT-IcMy5S9b2QLN", 
        enableClickableLogo: false,
        enableSearchLogo: false,
        showCopyright: false,
        showDashboard: false,
    });
    var map = new Microsoft.Maps.Map(document.getElementById("bing_map_container"), mapOption);
    // set the center to the geographic center of USA, 39.8282 N, 98.5795 W
    // and zoom level set to 4.
    map.setView({ center: new Microsoft.Maps.Location(39.8282, -98.5795), zoom: 4 });
    
    return map;
};
